public class TEST {

    public static void main(String[] args) {

        int sum = 0;
        for (int j = 0; j <= 5; j++) {
            int ret = 1;
            for (int i = 1; i <=j; i++) {
                ret *= i;
            }
            sum += ret;
        }

        System.out.println(sum);
    }


    public static void main6(String[] args) {
        int sum1 = 0;
        int sum2 = 0;
        for (int i = 0; i <=100 ; i++) {

            if(i % 2 == 0){
                sum1 += i;
            }else{
                sum2 += i;
            }
        }
        System.out.println(sum1);
        System.out.println(sum2);
    }
 /*   public static void main5(String[] args) {
        for (;  ; i++) {
            System.out.println(i);
        }
    }*/

//结果是竖着排列
    public static void main5(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i+" ");
        }
    }
//结果是横着排列
    public static void main4(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.print(i+" ");
        }
    }

    public static void main3(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }

    public static void main2(String[] args) {
    int i = 1;
        while (i <=100){
        if(i % 15 != 0){
            i++;
            continue;
        }
        System.out.println(i);
        i++;
        }
    }

    public static void main1(String[] args) {
        int i = 1;
        while(i<=100){
            if(i % 3 == 0){
                if(i % 5 == 0){
                    System.out.println(i);}

            }i++;
        }
    }
}

